<?php
include("_mysql.php");
include("_settings.php");
include("_functions.php");

$id = $_POST['item'];
echo mysql_num_rows(safe_query("SELECT * FROM bets WHERE itemID = '".$id."'"));
?>